package com.ruoyi.mdm.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.math.BigDecimal;

@Data
@Document(indexName = "skum_info") // 索引名称
public class SkumInfoEntity {
    @Id
    private Long id;

    /**
     * 关键字
     */
    @Field(name = "keyword")
    private String keyword;

    /**
     * 来源(01:自动，02:手动)
     */
    @Field(name = "skum_source")
    private String skumSource;

    /**
     * skum编码
     */
    @Field(name = "skum_code")
    private String skumCode;

    /**
     * 所属品牌代码
     */
    @Field(name = "owner_id")
    private String ownerId;

    /**
     * skum中文名称
     */
    @Field(name = "skum_name")
    private String skumName;

    /**
     * skum英文名称
     */
    @Field(name = "skum_name_en")
    private String skumNameEn;

    /**
     * skum简称
     */
    @Field(name = "skum_short_name")
    private String skumShortName;

    /**
     * 净含量
     */
    @Field(name = "skum_net_weight")
    private String skumNetWeight;

    /**
     * 净含量单位
     */
    @Field(name = "skum_net_weight_unit")
    private String skumNetWeightUnit;

    /**
     * 销售价格
     */
    @Field(name = "skum_sale_price")
    private BigDecimal skumSalePrice;

    /**
     * skum图片1
     */
    @Field(name = "skum_image_one")
    private String skumImageOne;

    /**
     * skum图片2
     */
    @Field(name = "skum_image_two")
    private String skumImageTwo;

    /**
     * skum图片3
     */
    @Field(name = "skum_image_three")
    private String skumImageThree;

    /**
     * skum图片4
     */
    @Field(name = "skum_image_four")
    private String skumImageFour;

    /**
     * skum图片5
     */
    @Field(name = "skum_image_five")
    private String skumImageFive;

    /**
     * 状态
     */
    @Field(name = "status")
    private String status;

    /**
     * 是否删除(y：是，n：否)
     */
    @Field(name = "del_flag")
    private String delFlag;

    /**
     * 创建者
     */
    @Field(name = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @Field(name = "create_time")
    private String createTime;

    /**
     * 更新者
     */
    @Field(name = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @Field(name = "update_time")
    private String updateTime;

    /**
     * 分页
     */
    private int page = 0;

    /**
     * 每页条数
     */
    private int size = 1000000;
}